﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wowhead.Common
{
    [Serializable()]
    public class Pair<T1, T2>
    {
        public Pair() { }

        public Pair(T1 value1, T2 value2) : this()
        {
            this.Value1 = value1;
            this.Value2 = value2;
        }

        public T1 Value1 { get; set; }
        public T2 Value2 { get; set; }

        public override int GetHashCode()
        {
            return this.Value1.GetHashCode() ^ this.Value2.GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("Value1: {0}, Value2: {1}", this.Value1, this.Value2);
        }
    }
}
